package cn.cosmosx.entity.vo;

import cn.cosmosx.entity.sys.SysPerms;
import cn.cosmosx.entity.sys.SysRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 用户详情VO
 *
 * @author gengzhy
 * @since 2022-10-02 23:52:28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "UserVO对象", description = "用户角色关系-VO")
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long userId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户角色")
    private List<SysRole> roles;

    @ApiModelProperty("用户权限")
    private List<SysPerms> perms;

}
